package com.ruoyi.statement.mapper;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.statement.domain.BillStatement;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author fuzhen-pc
 * @description TODO
 * @date 2023/6/25 15:34
 */
public interface BillStatementMapper extends BaseMapper<BillStatement> {

    //对账单列表
    @DataScope(companyAlias = "t1")
    public List<BillStatement> selectBillStatementList(BillStatement billStatement);

    //删除费项表中对账单数据
    void deleteBillStatementByStatementId(Long billStatementId);

    //根据对账单id修改对账单状态（对账状态、确认时间、操作确认人）
    void updateBillStatementStatus(@Param("billStatementId") Long billStatementId,@Param("statementStatus") String statementStatus,@Param("confirmName") String confirmName,@Param("confirmTime") Date confirmTime);
    
    void updateDelTimeAndDelName(@Param("billStatementId") Long billStatementId,@Param("delTime") Date delTime,@Param("delName") String delName);

    public void P_GEN_STATEMENT(@Param("jsonObject") JSONObject jsonObject);

    public void P_CHRG_FINISHED(@Param("jsonObject") JSONObject jsonObject);

    public void P_CANCEL_STATEMENT(@Param("jsonObject") JSONObject jsonObject);

}
